package me.spring.cloud.components.stater.exception;

import me.spring.cloud.components.stater.exception.handler.DefaultExceptionHandler;
import me.spring.cloud.components.stater.exception.handler.ExceptionController;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.context.annotation.Import;

/**
 * @author YuanWei
 * @description: 开启全局异常
 * @date 2019/3/29 10:23
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import({DefaultExceptionHandler.class, ExceptionController.class})
public @interface EnableGlobalExceptionHandler {
}
